package com.galaxy.user.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import com.galaxy.common.translation.annotation.Translation;
import com.galaxy.common.translation.constant.TransConstant;
import com.galaxy.user.domain.UserBase;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@AutoMapper(target = UserBase.class)
public class UserBaseVo extends BaseEntity {
    /**
     * 用户ID
     */
    private Long id;

    /**
     * 用户编号
     */
    private String userNo;

    /**
     * 微信openid
     */
    private String openid;

    /**
     * 支付宝ID
     */
    private String alipayId;

    /**
     * 用户名
     */
    private String username;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 头像URL
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "avatar")
    private String avatar;

    /**
     * 状态（0正常 1停用）
     */
    private Integer status;

    /**
     * 用户账户信息
     */
    private UserAccountVo userAccount;

    private Map<String, Object> token;

    private String code;

    private Integer gender;
}
